package com.vdong.trade.trading.entity.mo;


import com.vdong.trade.trading.common.foundation.FoundationMO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.RequiredArgsConstructor;


import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @author <a href="mailto:zlb">zlb</a>
 * @Description:Amount 实体类
 * @Date Create on 2018-12-18 18:46:17
 * @since version1.0 Copyright 2018 QTZ All Rights Reserved.
 */

@Data
@Entity
@Builder
@AllArgsConstructor
@RequiredArgsConstructor
@Table(name = "`amount`")
public class AmountMO extends FoundationMO {
    /**
     *
     */
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户类型
     */
    private String userType;

    /**
     * 未结算金额
     */
    private BigDecimal settlementAmount;

    /**
     * 可提现金额
     */
    private BigDecimal balance;

    /**
     * 冻结金额
     */
    private BigDecimal frozenAmount;

    /**
     * 总提现金额
     */
    private BigDecimal totalWithdraw;

    /**
     * 是否有效  0 ：无效 1：有效
     */
    private Integer status;


}

